package com.gwq.eums;

public enum ResponseCode {
    SUCCESS(0), // 成功
    FAIL(-1),   // 失败
    NOT_FOUND(404),   // 找到资源
    INTERNAL_SERVER_ERROR(500);   // 服务错误

    private final int code;

    ResponseCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
